package cc.vv.btpartyjob.homepage.adapter

import android.widget.TextView
import cc.vv.baselibrary.adapter.SimpleCommonAdapter
import cc.vv.baselibrary.adapter.holder.ExtendViewHolder
import cc.vv.btpartyjob.homepage.R
import cc.vv.btpartyjob.homepage.moudel.bean.DaiBanGongWenObj
import cc.vv.btpartyjob.jnimodule.server.OperationServer

/**
 * 代办公文adapter
 * Created by Chen.qi on 2018/10/24.
 */
class AgencyDocumentAdapter(layoutResId: Int) : SimpleCommonAdapter<DaiBanGongWenObj>(layoutResId) {
    override fun convert(helper: ExtendViewHolder, item: DaiBanGongWenObj, position: Int) {
        //title
        helper.getView<TextView>(R.id.tv_iad_title)?.text = item.title

        helper.getView<TextView>(R.id.tv_iad_status)?.text = OperationServer.formatStr(item.createTime)
    }
}